import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const install = (app) => {
  window.ipcRenderer = window?.electron?.ipcRenderer || {}
  // window.app = window?.app || {}
  // window.api = window?.api || {}
  // 从 @element-plus/icons-vue 中导入所有图标并进行全局注册
  for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
}

export default install
